﻿#region License
//------------------------------------------------------------
// Copyright (c) Denis Vuyka.  All rights reserved.
// This source code is subject to terms and conditions of the 
// Microsoft Reciprocal License (Ms-RL) License for Carcass. 
// A copy of the license can be found in the License.txt file 
// at the root of this distribution. 
// By using this source code in any fashion, you are agreeing 
// to be bound by the terms of the 
// Microsoft Reciprocal License (Ms-RL) License
// You must not remove this notice from this software.
//------------------------------------------------------------
#endregion

using System;
using System.ComponentModel.Composition;
using System.Windows.Controls;

namespace Carcass.Shell
{
  [MetadataAttribute]
  public sealed class PadViewMetadataAttribute : Attribute, IPadViewMetadata
  {
    public string Id { get; set; }
    public string Name { get; set; }    // Name of the view to be displayed in docking manager
    public Dock Docking { get; set; }   // Indicate which side the view will dock to
    public int DockId { get; set; }     // The order of the view will be docked
    public bool Hidden { get; set; }    // Indicate whether the view is shown or hidden on start-up

    public PadViewMetadataAttribute()
    {
      Id = Guid.NewGuid().ToString("B");
      Name = "Unknown";
      Docking = Dock.Left;
      DockId = 0;
      Hidden = false;
    }
  }
}
